projects
/
gpsbabel.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c8b0ce6
)
Netstumbler, geoniche: Explicitly init struct tm to zeros to hugh valgrind.
author
robertl
<robertl>
Thu, 25 Aug 2005 21:49:03 +0000
(21:49 +0000)
committer
robertl
<robertl>
Thu, 25 Aug 2005 21:49:03 +0000
(21:49 +0000)
geoniche.c
patch
|
blob
|
history
netstumbler.c
patch
|
blob
|
history
diff --git
a/geoniche.c
b/geoniche.c
index c44a94d59346b690798fe9ef0db030ffc96a3413..b0c85be6543246b582ab3b575774b4155f37e712 100644
(file)
--- a/
geoniche.c
+++ b/
geoniche.c
@@
-214,7
+214,7
@@
data_read(void)
int icon;
char *notes;
char gid[6+1];
- struct tm tm;
+ struct tm tm
= {0}
;
wpt = waypt_new();
if (!wpt)
diff --git
a/netstumbler.c
b/netstumbler.c
index 242fdb8815a2c1575f486a6b01f3f0511c2a901b..554d513b2529d2d16883b3393952ea2c2e696708 100644
(file)
--- a/
netstumbler.c
+++ b/
netstumbler.c
@@
-74,7
+74,7
@@
data_read(void)
int stealth_num = 0, whitespace_num = 0;
long flags = 0;
int speed = 0, channel = 0;
- struct tm tm;
+ struct tm tm
= {0}
;
for(; fgets(ibuf, sizeof(ibuf), file_in);) {
char *field;